<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Description" content="<?php echo ($sys["description"]); ?>" />
<meta name="keywords" content="<?php echo ($sys["keyword"]); ?>" />
<link rel="stylesheet" type="text/css" href="/Public/Home/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/Public/Home/css/bootstrap-responsive.min.css">
<link rel="stylesheet" type="text/css" href="/Public/Home/css/yii.css">
<link rel="stylesheet" type="text/css" href="/Public/Home/css/styles.css">
<link rel="stylesheet" type="text/css" href="/Public/Home/css/public.css">
<link rel="stylesheet" type="text/css" href="/Public/Home/css/jbox.css">
<link rel="stylesheet" type="text/css" href="/Public/Home/css/jquery-ui.css">
<script type="text/javascript" src="/Public/Home/js/jquery.min.js"></script>
<script type="text/javascript" src="/Public/Home/js/jquery.yiiactiveform.js"></script>
<script type="text/javascript" src="/Public/Home/js/jquery.ba-bbq.min.js"></script>
<script type="text/javascript" src="/Public/Home/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/Public/Home/js/config.js"></script>
<script type="text/javascript" src="/Public/Home/js/jquery.jBox-2.3.min.js"></script>
<script type="text/javascript" src="/Public/Home/js/jquery.jBox-zh-CN.js"></script>
<script type="text/javascript" src="/Public/Home/js/jquery-ui.js"></script>
<title><?php echo ($sys["title"]); ?></title>
<script  language="JavaScript"> 
          <!--
    //      function stopError() {
         //   return true;
  //        }
     //     window.onerror = stopError;
           -->         
</script>
</head>
<body>
<!--最顶上的内容-->
<div class="top-fixed-all">
      <div class="top-fixed">
            <div class="container">
                  <div class="top-fixed-info">
                        最新成交价:<span class="f-ff4000 BTC_RMB_rate" style=""><?php echo (($now["now"])?($now["now"]):0.07); ?></span>24小时成交币量:<span class="buy_price f-ff4000" style=""><?php echo (($now["total"])?($now["total"]):84567); ?></span>24小时成交金额量:<span class="f-7eb800 sell_price" style=""><?php echo (($now["totalprice"])?($now["totalprice"]):5849); ?></span>
                  </div>
                  <!--登录状态-->
                  <div class="top-fixed-user">
				       <?php if($login_user_id > 0 ): ?><div>
						   <div class="ll mt4 mr10">
						   </div>
						   <div class="user-msg-all">
							   <div class="f_ddd" id="user-hover" style="width: 44px;color:#ddd;"><em><?php echo ($login_user_name); ?></em><i></i></div>
							   <div class="user-msg">
								   <p><a class="mr15" href="<?php echo ($path); ?>/User">用户信息</a><a class="mr15" href="<?php echo ($path); ?>/User/detail">财务明细</a><a href="<?php echo ($path); ?>/User/chongzhi">充值</a></p>
							   </div>
						   </div>
						   <div class="ll"><a href="<?php echo ($path); ?>/Login/loginout">退出</a></div>
						   <div class="clear"></div>
					   </div>
					   <script language="javascript">
					       $('.user-msg-all').mouseover(function(){
						       $('.user-msg').css('display','block');
						   });

						   $('.user-msg-all').mouseout(function(){
						       $('.user-msg').css('display','none');
						   });
					   </script>
					   <?php else: ?>
					   <div class="unsign">
						   <div class="ll mt4 mr10">
						   </div>
						   <a href="<?php echo ($path); ?>/Login/reg">免费注册</a><a href="<?php echo ($path); ?>/Login">登录</a>
                       </div><?php endif; ?>
                  </div>
                  <div class="clear"></div>
            </div>
      </div>
</div>
<div class="mt30">
    <!--网站升级中提示-->
    <div class="top-cont-msg">   
     <div class="content-top"></div>    </div>
    <!--[if IE 6]>
    <div class="kie-bar">
      您使用的浏览器版本过低，为了您的资金安全和更好地用户体验，建议立即升级
      <a href="http://windows.microsoft.com/zh-cn/internet-explorer/download-ie" seed="kie-setup-IE8" target="_blank" >
      <i class="kie-bar-icon-ie"></i>Internet Explorer</a>
      或
      <a href="https://www.google.com/intl/zh-CN/chrome/" seed="kie-setup-IE8" target="_blank" >
      <i class="kie-bar-icon-chrome"></i>Google Chrome</a>
    </div>
    <style>
      .kie-bar {
        height: 24px;
        line-height: 1.8;
        font-weight:normal;
        text-align: center;
        border-bottom:1px solid #fce4b5;
        background-color:#FFFF9B;
        color:#e27839;
        position: relative;
        font-size: 14px;
        text-shadow: 0px 0px 1px #efefef;
        padding: 5px 0;
      }
      .kie-bar a {
        color:#08c;
        text-decoration: none;
      }
    </style>
    <![endif]--> 
    <!--头部-->
    <div class="container">
    <div class=" o_h_z" style="width:1000px;">
           <div class="logo-index"><a href="/"><img src="/<?php echo ($sys["logo"]); ?>"/></a></div>
           <!--导航-->
           <div class="nav-bar rr">
                 <ul>
                    <li class="cur"><a href="/">首页</a></li>
                    <li><a href="<?php echo ($path); ?>/Hall">交易大厅</a></li>
                    <li><a href="<?php echo ($path); ?>/User">我的账户</a></li>
					<li><a href="<?php echo ($path); ?>/User/buy">中元币认购</a></li>
                    <li><a href="<?php echo ($path); ?>/Art/index/cate/news">网站公告</a></li>  
					<li style="border-right:0px none;"><a href="<?php echo ($path); ?>/Art">一般问题</a></li>         
                 </ul>
           </div>
    </div>
    </div>
</div>
<!--交易页面的子导航区-->
<div class="subnav">
      <div class="container">
            <ul>
                 <li class="cur"><a href="<?php echo ($path); ?>/Hall">买入 | 卖出</a><i></i></li>
				 <li><a href="<?php echo ($path); ?>/Hall/ent">我的委托</a><i></i></li>
				 <li><a href="<?php echo ($path); ?>/Hall/trans">我的交易</a></li>
				 <li><a href="<?php echo ($path); ?>/Hall/alltrans">全站交易</a></li>
            </ul>
      </div>    
</div>

<div class="container" style="margin-top:20px;">
    <!--信息公告-->
    <div class="markets">
	<div class="markets_tit">交易市场</div>
    <?php if(is_array($tb)): $i = 0; $__LIST__ = $tb;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo ($path); ?>/Hall/index/id/<?php echo ($vo["id"]); ?>">
		<?php echo ($vo["goods"]); ?>/<?php echo ($vo["coin"]); ?>
		<p style="text-align:center;<?php if(($vo["ch"]) == "↑"): ?>color:#ff0000;<?php else: ?>color:#07860E;<?php endif; ?>"><?php echo (($vo["price"])?($vo["price"]):0); ?> <?php echo ($vo["ch"]); ?></p>
		</a><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
      <!--行情区-->
      <div class="p_rel">
            <div class="o_h_z" id="realtime">
            </div>
      </div>
	  <script>
	  $(document).ready(function(){
	      $('#realtime').load('/?s=Home/Hall/chart/line/60/id/<?php echo ($id); ?>/goods/<?php echo ($goods); ?>/coin/<?php echo ($coin); ?>');
		  var sc = null;
		  clearInterval(sc);
		  var line = 60;
		  var goods = "<?php echo ($goods); ?>";
		  var coin = "<?php echo ($coin); ?>";
		  sc = setInterval(function(){
		      $('#realtime').load('/?s=Home/Hall/chart/line/'+line+'/id/<?php echo ($id); ?>/goods/'+goods+'/coin/'+coin);
		  },360000);
	  });
	  </script>
      <div class="trade-part-all">
            <!--左边栏-->
            <div class="part-l">
				<!--[if IE]>
				<style>
				.trade-all-form{ height:410px;}
				</style>
				<![endif]--> 

                 <!--交易买卖平台-->
                 <div class="trade-all-form">
                       <div class="hd">
                             <span class="active" name="buy"><b class="tx-red">买入</b></span>
                             <span name="sell"><b class="tx-green">卖出</b></span>
                             <div class="clear"></div>
                       </div>
                       <!--交易买卖平台内容区-->
                       <div class="md">
                           <!--买入买出表单-->
                           
                           <div class="form_add_btc">
                               <div id="buy" class="tf-form">
                               <form class="form-horizontal" id="tf1" action="<?php echo ($path); ?>/GuaDan/work" method="post">
							   <input type="hidden" name="flag" value="1"/>
				               <input type="hidden" name="typeboxid" value="<?php echo ($id); ?>"/>
							   <div class="tf">
									<div class="tf-input">
							            <div class="tf-line">
											<span>买入价</span><input name="price" value="<?php echo (($minout)?($minout):0); ?>" type="text"/>
										</div>
									    <div class="tf-line">
										    <span>购买数量</span><input name="num" value="0" type="text"/>
                                        </div> 
										<div class="tf-line">
											<span>总额</span><input name="total" readonly value="0" type="text"/>
										</div>
										<div class="tf-line">
											<span>交易密码</span><input name="transpw" type="password"/>
										</div>
									</div>
									<div class="tf-text">
										<div class="tf-line">
                                          <input type="button" value="买入" id="buy_btn" class="tf-btn"/>
										</div>
										<div class="tf-info">
                                            <p>建议价格<span class="red"><?php echo (($minout)?($minout):0); ?></span><?php echo ($coin); ?></p>
                                            <p>最多可买<span class="red"><?php echo (($ablenumout)?($ablenumout):0); ?></span><?php echo ($goods); ?></p>
                                        </div>
									</div>
									<div class="clear"></div>
					           </div>
                               </form>
				               </div>
                              <script language="javascript">
                              function ckNum(n){
							      if(n=='' || isNaN(n) || n <= 0){
								     return false;
								  }else{
								     return true;
								  }
							  }

							  $(document).ready(function(){
								  $('#tf1 input[name=price],#tf1 input[name=num]').bind('keyup change',function(){
								      var price = $('#tf1 input[name=price]').val();
									  var num = $('#tf1 input[name=num]').val();

									  if(price=="" || isNaN(price)){
										  $('#tf1 input[name=price]').val(0);
										  msgDalog("价格应为数字！","",0);
										  return false;
								      }

                                      if(num=="" || isNaN(num)){
										  $('#tf1 input[name=num]').val(0);
										  msgDalog("数量应为数字！","",0);
										  return false;
									  }

									  var pos = price.indexOf('.');
									  if(pos != -1){
											if(price.substring(0,pos)=='') {
												msgDalog('价格不合法！',"",0);
												$('#tf1 input[name=price]').val(0);
												$('#tf1 input[name=price]').focus();
												return false;
											}
											len = price.substring(pos+1,price.length);
											if(len.length > 6) {
												v = price.substring(0,pos) + '.' + price.substring(pos+1,pos+7);
												$('#tf1 input[name=price]').val(v);
												price = v;
											}
									  }
									  var pos = num.indexOf('.');
									  if(pos != -1){
											if(num.substring(0,pos)=='') {
												msgDalog('价格不合法！',"",0);
												$('#tf1 input[name=num]').val(0);
												$('#tf1 input[name=num]').focus();
												return false;
											}
											len = num.substring(pos+1,num.length);
											if(len.length > 6) {
												v = num.substring(0,pos) + '.' + num.substring(pos+1,pos+7);
												$('#tf1 input[name=num]').val(v);
												num = v;
											}
									  }

									  var price = parseFloat(price);
									  var num = parseFloat(num);
									  var total = price * num;

                                      total = String(total);
									  var pos = total.indexOf('.');
									  if(pos != -1){
											if(total.substring(0,pos)=='') {
												msgDalog('总额不合法！',"",0);
												$('#tf1 input[name=total]').val(0);
												return false;
											}
											len = total.substring(pos+1,total.length);
											if(len.length > 6) {
												v = total.substring(0,pos) + '.' + total.substring(pos+1,pos+7);
												$('#tf1 input[name=total]').val(v);
												total = v;
											}
									  }

									  var balance = <?php echo (($buy_remain)?($buy_remain):0); ?>;
									  if(total > balance){
									      msgDalog('您的余额不够！',"",0);
                                          $('#tf1 input[name=price]').val(0);
										  $('#tf1 input[name=num]').val(0);
										  $('#tf1 input[name=total]').val(0);
										  return false;
									  }

									  $('#tf1 input[name=total]').val(total);
								  });

								  $('#buy_btn').click(function(){

                                      <?php if($buyflag != 1): ?>msgDalog("还未开盘，不能购买！","",0);
                                      return;<?php endif; ?>

									  var o_price = $('#tf1 input[name=price]');
									  var o_num = $('#tf1 input[name=num]');
									  var o_total = $('#tf1 input[name=total]');
									  var o_transpw = $('#tf1 input[name=transpw]');

								      if(o_price.val()==""||o_price.val()<=0||isNaN(o_price.val())){
									      msgDalog("请输入价格！","",0);
									  }else if(o_num.val()==""||o_num.val()<=0||isNaN(o_num.val())){
									      msgDalog("请输入数量！","",0);
									  }else if(o_total.val()==""||o_total.val()<=0||isNaN(o_total.val())){
									      msgDalog("总额要大于0！","",0);
									  }else if(o_transpw.val()==""){
									      msgDalog("交易密码不能为空！","",0);
									  }else{
									      $('#tf1').submit();
									  }
								  });
							  });
							  </script>
                               <div style="display:none;" id="sell" class="tf-form">
                               <form class="form-horizontal" id="tf2" action="<?php echo ($path); ?>/GuaDan/work" method="post">
							   <input type="hidden" name="flag" value="0">
				               <input type="hidden" name="typeboxid" value="<?php echo ($id); ?>">
							   <div class="tf">
									<div class="tf-input">
							            <div class="tf-line">
											<span>卖出价</span><input name="price" value="<?php echo (($maxin)?($maxin):0); ?>" type="text"/>
										</div>
									    <div class="tf-line">
										    <span>卖出数量</span><input name="num" value="0" type="text"/>
                                        </div>
										<div class="tf-line">
											<span>总额</span><input name="total" readonly value="0" type="text"/>
										</div>
										<div class="tf-line">
											<span>交易密码</span><input name="transpw" type="password"/>
										</div>
									</div>
									<div class="tf-text">
										<div class="tf-line">
                                          <input type="button" value="卖出" id="sell_btn" class="tf-btn"/>
										</div>
										<div class="tf-info">
                                            <p>建议价格<span class="red"><?php echo (($maxin)?($maxin):0); ?></span><?php echo ($coin); ?></p>
                                            <p>最多可卖<span class="red"><?php echo (($sell_remain)?($sell_remain):0); ?></span><?php echo ($goods); ?></p>
                                        </div>
									</div>
									<div class="clear"></div>
					           </div>
                               </form>
							   </div>

							   <script language="javascript">
							  $(document).ready(function(){
								  $('#tf2 input[name=price],#tf2 input[name=num]').bind('keyup change',function(){
								      var price = $('#tf2 input[name=price]').val();
									  var num = $('#tf2 input[name=num]').val();

									  if(price=="" || isNaN(price)){
										  $('#tf2 input[name=price]').val(0);
										  msgDalog("价格应为数字！","",0);
										  return false;
								      }

                                      if(num=="" || isNaN(num)){
										  $('#tf2 input[name=num]').val(0);
										  msgDalog("数量应为数字！","",0);
										  return false;
									  }

									  var pos = price.indexOf('.');
									  if(pos != -1){
											if(price.substring(0,pos)=='') {
												msgDalog('价格不合法！',"",0);
												$('#tf2 input[name=price]').val(0);
												$('#tf2 input[name=price]').focus();
												return false;
											}
											len = price.substring(pos+1,price.length);
											if(len.length > 6) {
												v = price.substring(0,pos) + '.' + price.substring(pos+1,pos+7);
												$('#tf2 input[name=price]').val(v);
												price = v;
											}
									  }
									  var pos = num.indexOf('.');
									  if(pos != -1){
											if(num.substring(0,pos)=='') {
												msgDalog('价格不合法！',"",0);
												$('#tf2 input[name=num]').val(0);
												$('#tf2 input[name=num]').focus();
												return false;
											}
											len = num.substring(pos+1,num.length);
											if(len.length > 6) {
												v = num.substring(0,pos) + '.' + num.substring(pos+1,pos+7);
												$('#tf2 input[name=num]').val(v);
												num = v;
											}
									  }

									  var price = parseFloat(price);
									  var num = parseFloat(num);
									  var total = price * num;

                                      total = String(total);
									  var pos = total.indexOf('.');
									  if(pos != -1){
											if(total.substring(0,pos)=='') {
												msgDalog('总额不合法！',"",0);
												$('#tf2 input[name=total]').val(0);
												return false;
											}
											len = total.substring(pos+1,total.length);
											if(len.length > 6) {
												v = total.substring(0,pos) + '.' + total.substring(pos+1,pos+7);
												$('#tf2 input[name=total]').val(v);
												total = v;
											}
									  }

                                      var balance = <?php echo (($sell_remain)?($sell_remain):0); ?>;
									  if(num > balance){
									      msgDalog('您的余额不够！',"",0);
                                          $('#tf2 input[name=price]').val(0);
										  $('#tf2 input[name=num]').val(0);
										  $('#tf2 input[name=total]').val(0);
										  return false;
									  }

									  $('#tf2 input[name=total]').val(total);
								  });

								  $('#sell_btn').click(function(){

                                      <?php if($saleflag != 1): ?>msgDalog("暂不能卖出！","",0);
                                      return;<?php endif; ?>


									  var o_price = $('#tf2 input[name=price]');
									  var o_num = $('#tf2 input[name=num]');
									  var o_total = $('#tf2 input[name=total]');
									  var o_transpw = $('#tf2 input[name=transpw]');

								      if(o_price.val()==""||o_price.val()<=0||isNaN(o_price.val())){
									      msgDalog("请输入价格！","",0);
									  }else if(o_num.val()==""||o_num.val()<=0||isNaN(o_num.val())){
									      msgDalog("请输入数量！","",0);
									  }else if(o_total.val()==""||o_total.val()<=0||isNaN(o_total.val())){
									      msgDalog("总额要大于0！","",0);
									  }else if(o_transpw.val()==""){
									      msgDalog("交易密码不能为空！","",0);
									  }else{
									      $('#tf2').submit();
									  }
								  });
							  });
							  </script>

                               </div>   
                     
                      </div>

					  <script language="javascript">
					  $(document).ready(function(){
					      $('.hd span').click(function(){
						      $('.tf-form').hide();
							  $('#'+$(this).attr('name')).show();

							  $('.hd span').removeClass('active');
							  $(this).addClass('active');

                              $('.weituo').hide();
                              $('#'+$(this).attr('name')+'list').show();
						  });

						  $('input[name=price],input[name=num]').focus(function(){
						      if($(this).val()==0) $(this).val('');
						  });
						  $('input[name=price],input[name=num]').blur(function(){
						      if($(this).val()=='') $(this).val(0);
						  });
					  });
					  </script>

                      <div class="asset">
                           <div>
                                <dl>
                                    <dt>可用<?php echo ($goods); ?></dt>
                                    <dd><span class="font-wei"></span><span id="RMB_pure_balance"><?php echo (($sell_remain)?($sell_remain):0); ?></span></dd>
                                </dl>
                                <dl>
                                    <dt>冻结<?php echo ($goods); ?></dt>
                                    <dd><span id="RMB_frozen" class="RMB_frozen"><?php echo (($sell_gdgold)?($sell_gdgold):0); ?></span></dd>
                                </dl>
                                <dl>
                                    <dt>可用<?php echo ($coin); ?></dt>
                                    <dd><span id="BTC_pure_balance"><?php echo (($buy_remain)?($buy_remain):0); ?></span></dd>
                                </dl>
                                <dl style="border-right:0px none;">
                                    <dt>冻结<?php echo ($coin); ?></dt>
                                    <dd><span id="BTC_frozen" class="BTC_frozen"><?php echo (($buy_gdgold)?($buy_gdgold):0); ?></span></dd>
                                </dl>
                           </div>
                      </div>
                      <div class="clear"></div>
                 </div>
            </div>
            <!--右边栏-->
            <div class="part-r">
                 <!--贸易区-->
                 <div class="trade-all trade-form-box">
                     <!--买卖委托盘-->
                     <div class="trade-part-hd part-business weituo" id="buylist">
                           <div class="trade-hd">
                                 <h6><i class="icon_entrus"></i>卖出委托盘</h6>
                           </div>
                           <div class="md">
							 <table width="100%">
								  <thead>
									   <tr>
										   <th>类型</th>
										   <th>价格<font face="微软雅黑"></font></th>
										   <th>数量</th>
									  </tr>
								  </thead>
								  <tbody>
								  <?php if(is_array($sells)): $k = 0; $__LIST__ = $sells;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr>
									  <td class="sell">卖</td>
									  <td><span class="sub_price"><?php echo ($vo["price"]); ?></span></td>
									  <td><span class="sub_amount"><?php echo ($vo["nums"]); ?></span></td>
									  <td><span style="width:0.065px" class="buySpan"></span></td>
								  </tr><?php endforeach; endif; else: echo "$empty" ;endif; ?>
								  </tbody>
							 </table> 
							 
                           </div>
                     </div>
					 <div class="trade-part-hd part-business weituo" id="selllist" style="display:none;">
                           <div class="trade-hd">
                                 <h6><i class="icon_entrus"></i>买入委托盘</h6>
                           </div>
                           <div class="md">
							 <table width="100%">
								  <thead>
									   <tr>
										   <th>类型</th>
										   <th>价格<font face="微软雅黑"></font></th>
										   <th>数量</th>
									  </tr>
								  </thead>
								  <tbody>
								  <?php if(is_array($buys)): $k = 0; $__LIST__ = $buys;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr>
									  <td class="buy">买</td>
									  <td><span class="sub_price"><?php echo ($vo["price"]); ?></span></td>
									  <td><span class="sub_amount"><?php echo ($vo["nums"]); ?></span></td>
									  <td><span style="width:0.596px" class="sellSpan"></span></td>
								  </tr><?php endforeach; endif; else: echo "$empty" ;endif; ?>
								  </tbody>
							 </table>
                           </div>
                     </div>
                 </div>
            </div>
      </div>
      <div class="o_h_z">
           <div class="part-l" style="width:100%;">
		        <div class="trade-part trade-part-hd mt20">
					<table style="width:475px;float:left;">
						  <thead>
						      <tr><td colspan=3><b>买入委托</b></td></tr>
							  <tr>
								   <th>类型</th>
								   <th>价格<font face="微软雅黑"></font></th>
								   <th>数量</th>
							  </tr>
						  </thead>
						  <tbody>
						  <?php if(is_array($buys)): $k = 0; $__LIST__ = $buys;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr>
							  <td class="buy">买</td>
							  <td><span class="sub_price"><?php echo ($vo["price"]); ?></span></td>
							  <td><span class="sub_amount"><?php echo ($vo["nums"]); ?></span></td>
						  </tr><?php endforeach; endif; else: echo "$empty" ;endif; ?>
						  </tbody>
					</table>
					<table style="width:475px;float:left;margin-left:50px;">
						  <thead>
						       <tr><td colspan=3><b>卖出委托</b></td></tr>
							   <tr>
								   <th>类型</th>
								   <th>价格<font face="微软雅黑"></font></th>
								   <th>数量</th>
							  </tr>
						  </thead>
						  <tbody>
						  <?php if(is_array($sells)): $k = 0; $__LIST__ = $sells;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr>
							  <td class="sell">卖</td>
							  <td><span class="sub_price"><?php echo ($vo["price"]); ?></span></td>
							  <td><span class="sub_amount"><?php echo ($vo["nums"]); ?></span></td>
						  </tr><?php endforeach; endif; else: echo "$empty" ;endif; ?>
						  </tbody>
					 </table> 
					 <div style="clear:both"></div>
                </div>
				<!--交易记录-->
                <div class="trade-part trade-part-hd mt20">
                  <div class="trade-hd">
                        <h5>
                             <i class="icon_condition"></i>交易记录</h5>
                        <p><a href="<?php echo ($path); ?>/Hall/alltrans">查看更多&nbsp;&gt;</a></p>
                  </div>
                  <div class="md">
                  <div class="my-grid" id="order-grid-transaction">
					<table class="items table table-striped table-bordered table-condensed">
					<thead>
					<tr>
					<th>创建时间</th><th>交易类型</th><th>价格</th><th>数量</th><th>总金额</th></tr>
					</thead>
					<tbody>
					<?php if(is_array($translogs)): $i = 0; $__LIST__ = $translogs;if( count($__LIST__)==0 ) : echo "$translog_emp" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr><td><?php echo (($vo["addtime"])?($vo["addtime"]):'无'); ?></td><td><?php if(($vo["flag"]) == "0"): ?>卖<?php else: ?>买<?php endif; ?></td><td><?php echo (($vo["price"])?($vo["price"]):0); ?></td><td><?php echo (($vo["num"])?($vo["num"]):0); ?></td><td><?php echo (($vo["sum"])?($vo["sum"]):0); ?></td></tr><?php endforeach; endif; else: echo "$translog_emp" ;endif; ?>
					</tbody>
					</table>
					</div>
                   </div>
                </div>

				<!--我的委托-->
                <div class="trade-part trade-part-hd mt20">
                  <div class="trade-hd">
                      <h5><i class="icon_userde"></i>我的委托</h5>
                      <p><a href="<?php echo ($path); ?>/Hall/ent">查看更多&nbsp;&gt;</a></p>
                  </div>
                  <div class="md">
                  <div class="my-grid" id="order-grid">
					<table class="items table table-striped table-bordered table-condensed">
					<thead>
					<tr>
					<th>创建时间</th><th>交易类型</th><th>数量</th><th>价格</th><th>操作</th></tr>
					</thead>
					<tbody>
					<?php if(is_array($myent)): $i = 0; $__LIST__ = $myent;if( count($__LIST__)==0 ) : echo "$ent_emp" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr><td><?php echo (($vo["addtime"])?($vo["addtime"]):'无'); ?></td><td><?php if(($vo["flag"]) == "0"): ?>卖<?php else: ?>买<?php endif; ?></td><td><?php echo (($vo["num"])?($vo["num"]):0); ?></td><td><?php echo (($vo["price"])?($vo["price"]):0); ?></td><td><a href="<?php echo ($path); ?>/GuaDan/cancel/id/<?php echo ($vo["id"]); ?>">取消委托</eq></td></tr><?php endforeach; endif; else: echo "$ent_emp" ;endif; ?>
					</tbody>
					</table>
					</div>
                  </div>
                </div>
                
                <!--我的交易记录-->
                <div class="trade-part trade-part-hd mt20">
                  <div class="trade-hd">
                        <h5>
                             <i class="icon_condition"></i>我的交易</h5>
                        <p><a href="<?php echo ($path); ?>/Hall/trans">查看更多&nbsp;&gt;</a></p>
                  </div>
                  <div class="md">
                  <div class="my-grid" id="order-grid-transaction">
					<table class="items table table-striped table-bordered table-condensed">
					<thead>
					<tr>
					<th>创建时间</th><th>交易类型</th><th>价格</th><th>数量</th><th>总金额</th></tr>
					</thead>
					<tbody>
					<?php if(is_array($mytrans)): $i = 0; $__LIST__ = $mytrans;if( count($__LIST__)==0 ) : echo "$trans_emp" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr><td><?php echo (($vo["addtime"])?($vo["addtime"]):'无'); ?></td><td><?php if(($vo["flag"]) == "0"): ?>卖<?php else: ?>买<?php endif; ?></td><td><?php echo (($vo["price"])?($vo["price"]):0); ?></td><td><?php echo (($vo["num"])?($vo["num"]):0); ?></td><td><?php echo (($vo["sum"])?($vo["sum"]):0); ?></td></tr><?php endforeach; endif; else: echo "$trans_emp" ;endif; ?>
					</tbody>
					</table>
					</div>
                   </div>
                </div>
            </div>
      </div>
</div>

<!--尾部-->
<div class="footer-all">
     <div class="container footer-part sitelink grid-990">
           <div class="rr">
                 <div class="cont-box cont-box-first">
                       <h6>客户服务</h6>
                       <ul>
					       <?php if(is_array($serv)): $i = 0; $__LIST__ = $serv;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($path); ?>/Art/index/id/<?php echo ($vo["id"]); ?>"><?php echo ($vo["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                       </ul>
                 </div>
                 <div class="cont-box">
                       <h6>关于我们</h6>
                       <ul>
                           <?php if(is_array($about)): $i = 0; $__LIST__ = $about;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($path); ?>/Art/index/id/<?php echo ($vo["id"]); ?>"><?php echo ($vo["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                       </ul>
                 </div>
                 <div class="cont-box">
                       <h6>服务条款</h6>
                       <ul>
                           <?php if(is_array($mserv)): $i = 0; $__LIST__ = $mserv;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($path); ?>/Art/index/id/<?php echo ($vo["id"]); ?>"><?php echo ($vo["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                       </ul>
                 </div>
				 <div class="cont-box"><img src="/Public/Home/images/weixin.png"/></div>
                 <div class="cont-box cont-box-last">
                       <h6><i></i>风险提示</h6>
                       <p><?php echo ($warn["content"]); ?></p>
                 </div>
				 <div style="clear:both"></div>
           </div>
     </div>
      <div class="t_c grid-990 sitecopyright"><?php echo ($sys["copyright"]); echo ($sys["tongji"]); ?><br/>平台支持：<a href="http://www.vike5.com" target="_blank">威客网</a> 湘ICP备10001691号
</div>
	<div class="t_c grid-990 siteauth"></div>
</div>
<div id="alert_room1"></div>
<script language="javascript" src="/Public/js/alert.js"></script>

<div class="serv-qq">
<div class="serv-tit">在线咨询</div>
<dl>
	<?php if(is_array($sys["qq"])): $i = 0; $__LIST__ = $sys["qq"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><dt><?php echo ($vo["name"]); ?></dt><dd><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo ($vo["text"]); ?>&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<?php echo ($vo["text"]); ?>:41" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>
	    </dd><?php endforeach; endif; else: echo "" ;endif; ?>
</dl>
<div class="clear"></div>
</div>
  <!-- footer -->

<!--[if IE 6]><script src="/js/ie-6.js"></script><![endif]-->
<script type="text/javascript" src="/Public/Home/js/jquery.SuperSlide.js"></script>
<script type="text/javascript" src="/Public/Home/js/slideTxtBox.js"></script>
<script type="text/javascript" src="/Public/Home/js/bootbox.js"></script>
<script type="text/javascript" src="/Public/Home/js/box.js"></script>
<script type="text/javascript" src="/Public/Home/js/lang(1).js"></script>
<script type="text/javascript" src="/Public/Home/js/responseHandler.js"></script>
<script type="text/javascript" src="/Public/Home/js/jquery.yiigridview.js"></script>
</body>
</html>